Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

180
Vistas
Download File in Specified folder [Javascript]

I've been creating a small project with the aim of downloading youtube videos on my server. in theory it already works, but I want that, when I press download, it downloads the file in a specific folder inside the server.

this is my code for the function.

Used library: ytdl-core

app.get("/download", async(req, res) => {
    const info = await req.query.url;
    const v_id = info.split('v=')[1];
    res.header("Content-Disposition", `attachment; filename="${v_id}.mp3`);
    ytdl(info, {format: 'mp3'}).pipe(res);
});
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda